package com.zp.self.module.level_5_设计模式.行为型模式.Ⅵ_观察者模式.微信公众号;

/**
 * @author ：by Zeng Peng
 * @date ：Created 2022/7/3 20:50
 * @description ：
 */
public class Client {
    public static void main(String[] args) {
        SubsctriptionSubject subject = new SubsctriptionSubject();

        WeiXinUserObserver userObserver0 = new WeiXinUserObserver("粉丝1号");
        WeiXinUserObserver userObserver1 = new WeiXinUserObserver("粉丝2号");
        subject.attach(userObserver0);
        subject.attach(userObserver1);
        subject.notify("张麻子要开演唱会了");
    }
}
